package factory;

public class Factory1 {

    interface FoodFactory{
        Server1.Food getFood();
    }

    static class RiceFactory implements FoodFactory{

        @Override
        public Server1.Food getFood() {
            return new Server1.Rice();
        }
    }

    static class NoodlesFactory implements FoodFactory{

        @Override
        public Server1.Food getFood() {
            return new Server1.Noodles();
        }
    }

}
